<?php


namespace App\Models;


use App\Engine\BaseModel;


/**
 * Class Chicken
 *
 * @property int $id
 * @property int $nav_show
 * @property string|null $name
 * @property string|null $content
 * @property int $created_at
 * @property int $updated_at
 *
 * @package App\Models
 */
class Article extends BaseModel
{
    protected $table = 'articles';
    protected $fillable = [
        'name',
        'content',
        'nav_show',
        'icon'
    ];

    public $rule=[
        'name'=>'required',
        'content'=>'required',
        'icon'=>'required',
    ];

    public $ruleMessage=[
        'name.required'=>"请填写标题",
        'content.required'=>"请输入文章内容",
        'icon.required'=>"请填写封面",
    ];
}
